package com.springdi.service;

import com.springdi.ui.client;

import java.util.Date;

public class AccountServiceImppl  implements IAccountService{
    /**
     * 构造函数注入的方式
     */
    private  String username;
    private Date birthday;
    private Integer age;
    public AccountServiceImppl(String username,Date birthday,Integer age){
        this.age=age;
        this.birthday=birthday;
        this.username=username;
    }
    public void saveAccount() {
        System.out.println("service访问被调用"+username+age+birthday+"---");
    }
}
